package sevice;

import dao.DaoFactory;
import model.Order;

public class OrderServiceImp implements OrderService {

	@Override
	public void save(Order order) throws Exception {
		DaoFactory.getOrderDAO().save(order);

	}

	public void update(Order order) throws Exception {
		DaoFactory.getOrderDAO().update(order);
	}

	public Order finById(long oredertime) throws Exception {
		return DaoFactory.getOrderDAO().finById(oredertime);
	}

}
